package utils

// SPDK RPC 方法名常量
const (
    // 系统相关
    MethodGetVersion        = "spdk_get_version"
    MethodGetSubsystems     = "framework_get_subsystems"
    
    // Bdev相关
    MethodBdevMallocCreate = "bdev_malloc_create"
    MethodBdevAioCreate    = "bdev_aio_create"
    MethodBdevNvmeAttach   = "bdev_nvme_attach_controller"
    MethodBdevDelete       = "bdev_delete"
    MethodBdevGetBdevs     = "bdev_get_bdevs"
    MethodBdevGetIOStat    = "bdev_get_iostat"
    
    // NVMf相关
    MethodNvmfCreateSubsystem = "nvmf_create_subsystem"
    MethodNvmfDeleteSubsystem = "nvmf_delete_subsystem"
    MethodNvmfGetSubsystems   = "nvmf_get_subsystems"
    MethodNvmfAddNamespace    = "nvmf_subsystem_add_ns"
    MethodNvmfRemoveNamespace = "nvmf_subsystem_remove_ns"
    MethodNvmfAddListener     = "nvmf_subsystem_add_listener"
    MethodNvmfRemoveListener  = "nvmf_subsystem_remove_listener"
)

// SPDK 参数键名常量
const (
    ParamName         = "name"
    ParamNumBlocks    = "num_blocks"
    ParamBlockSize    = "block_size"
    ParamUUID         = "uuid"
    ParamNQN          = "nqn"
    ParamNSID         = "nsid"
    ParamBdevName     = "bdev_name"
    ParamAllowAnyHost = "allow_any_host"
    ParamHosts        = "hosts"
    // ...更多参数常量
)
